﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XiMiDal;
using XiMiModel;
using XiMiModelDto;

namespace XiMiBll
{
    public class ShopBll
    {
        private readonly ShopDal _shopDal;
        public ShopBll(ShopDal shopDal)
        {
            _shopDal = shopDal;
        }
        public int AddShop(ShopModel shopModel)
        {
            return _shopDal.AddShop(shopModel);
        }
        public List<ShopDtoModel> Show(out int totalcount)
        {
            return _shopDal.Show(out totalcount);
        }
        public int Del(int id)
        {
            return _shopDal.Del(id);
        }
        public int AddOrder(OrderFromDto orderFromDto, out string number)
        {
            return _shopDal.AddOrder(orderFromDto,out number);
        }
        public int AddCity(AddressModel addressModel)
        {
            return _shopDal.AddCity(addressModel);
        }
        public List<FixDtoModel> Check(int id)
        {
            return _shopDal.Check(id);
        }
        public int DelAddress(int id)
        {
            return _shopDal.DelAddress(id);
        }
        public int Update(AddressModel addressModel)
        {
            return _shopDal.Update(addressModel);
        }
        public List<CityModel> BindCity(int id)
        {
            return _shopDal.BindCity(id);
        }
        public List<ShowAddressDto> ShowAddressDto()
        {
            return _shopDal.ShowAddressDto();
        }
        public AddressModel Fan(int id)
        {
            return _shopDal.Fan(id);
        }
    }
}
